﻿using System;
using System.Linq;
using VisionCloud.Core.Model.Ms;
using VisionCloud.Core.Model.Sys;

namespace VisionCloud.Domain.Repository.Interface.Sys
{
    public interface ISysUserDeviceTraceRepository : IBaseRepository<SysUserDeviceTrace>
    {
        /// <summary>
        /// 查询用户的激活的设备的最新地址
        /// </summary>
        /// <param name="userId">用户Id</param>
        /// <returns></returns>
        IQueryable<DeviceLastAddressView> QueryDeviceByUser(Guid userId);
    }
}